REM windows script programmers
REM http://www.trytoprogram.com/batch-file-commands/

```CMD
@echo OFF
ASSOC | find ".txt"
pause

REM 判断输入
@echo OFF
ECHO You want coffee?
ECHO Enter Y for yes
ECHO Enter N for no
CHOICE /c YN /m "Yes or No"

@ECHO OFF
COMP C:\abc.txt C:\xyz.txt
CHOICE /c Y

@ECHO OFF
:: For copying from one drive to another -xyz.txt from D:\ to E:\
COPY D:\xyz.txt E:\

:: If file has whitepace between name - use double quote
COPY "D:\my file.txt" E:\

@echo OFF
echo %DATE%

:: To delete a single file xyz.txt
DEL D:\xyz.txt

:: To delete all the files of .txt extensions and ask for confirmation before deleting
DEL /p/s D:\*.txt

:: Remove \p to delete without confirmation
DEL /s D:\*.txt

:: To list all the contents  of current directory
DIR

:: To list all the hidden files of working directory
DIR /ah

:: To list all files with .php extensions
DIR *.php

:: display DRIVER QUERY
DRIVER QUERY
FC D:\a.txt D:\b.txt

FIND "find me" example.txt

FORMAT E:\

HELP

HELP copy

IPCONFIG

MD abc

MORE D:\example.txt

MORE D:\example.txt

NET users

START paint.exe

SYSTEMINFO

TASKKILL /im notepad.exe

ECHO %TIME%
TYPE C:\notes.txt
```

